package com.gugee.ins.common.dal.mapper.blogger;

import com.gugee.ins.common.model.ai.InsBloggerLanguage;
import com.gugee.ins.common.model.mysql.blogger.InsBloggerAdd;
import com.gugee.ins.data.common.msg.InsBloggerMessage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface InsBloggerAddExtMapper extends InsBloggerAddMapper {
    /**
     * 根据uid查找数据
     * @param uid
     * @return
     */
    @Select("select * from ins_blogger_add where uid = #{uid}")
    InsBloggerAdd findByUid(long uid);

    /**
     * 批量插入
     * @param insBloggerMessageList
     * @param nowTime
     */
    void batchInsert(@Param("insBloggerMessageList") List<InsBloggerMessage> insBloggerMessageList,
                     @Param("ct")long nowTime);

    /**
     * 插入一个
     * @param insBloggerMessage
     * @param nowTime
     */
    void insertOne(@Param("insBloggerMessage")InsBloggerMessage insBloggerMessage,
                   @Param("ct")long nowTime);

    /**
     * 批量更新
     * @param insBloggerLanguages
     * @param nowTime
     */
    void batchUpdateAnalysisLanguageTime(@Param("insBloggerLanguages")List<InsBloggerLanguage> insBloggerLanguages,
                   @Param("ct")long nowTime);

    /**
     * 批量更新
     * @param uid
     * @param nowTime
     */
    void updateAnalysisLanguageTime(@Param("uid")long uid, @Param("ct")long nowTime);
}